<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/lib/bootstrap/dist/css/bootstrap.min.css' />
    <link rel='stylesheet' href='/stylesheets/font-awesome.min.css' />
    <link rel='stylesheet' href='/stylesheets/ionicons.min.css' />
    <link rel='stylesheet' href='/lib/admin-lte/dist/css/AdminLTE.min.css' />
    <link rel='stylesheet' href='/lib/admin-lte/dist/css/skins/skin-blue.min.css' />
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body class="hold-transition skin-blue sidebar-mini">
  <div class="wrapper">

    <% include header.ejs %>

    <% include menu.ejs %>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Main content -->
      <section class="content">
        <div class="box box-info">
          <div class="box-header with-border">
            <h3 class="box-title">添加<%= bannerStr %>轮播图</h3>
          </div>
          <!-- /.box-header -->
          <!-- form start -->
          <form class="form-horizontal" enctype="multipart/form-data" action = "/banner/addbannerAction" method="post">
            <div class="box-body">
              <div class="form-group">
                <label for="bannerType" class="col-sm-2 control-label">banner类型</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control"  value="<%= bannerType %>" name="bannerType" placeholder="banner类型">
                </div>
              </div>

              <div class="form-group">
                <label for="bannerID" class="col-sm-2 control-label">bannerID</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control"  value="" name="bannerID" placeholder="bannerID">
                </div>
              </div>

              <div class="form-group">
                <label for="bannerSrc" class="col-sm-2 control-label">图片</label>
                <div class="col-sm-10">
                  <input type="file" class="form-control"  value="" name="bannerImg">
                </div>
              </div>

              <div class="form-group">
                <label for="linkSrc" class="col-sm-2 control-label">链接地址</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" value="" name="linkSrc" placeholder="链接地址">
                </div>
              </div>

            </div>
            <!-- /.box-body -->
            <div class="box-footer">
              <div class="form-group">
                <label for="alt" class="col-sm-2 control-label sr-only"></label>

                <div class="col-sm-10">
                  <button type="submit" class="btn btn-info pull-left" >添加banner</button>
                </div>
              </div>

            <!-- /.box-footer -->
          </form>
        </div>

      </section>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <% include footer.ejs %>


    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
  </div>
  <!-- ./wrapper -->
  </body>
  <script src = "/javascripts/jquery.min.js"></script>
  <script src = "/lib/bootstrap/dist/js/bootstrap.min.js"></script>
  <script src = "/javascripts/app.min.js"></script>
</html>
